﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Threading;
using WatiN.Core;
using TechTalk.SpecFlow;
using SHDocVw;

namespace FazaDemo.WebSiteMvc.Specs
{
    static class WebBrowser
    {

        public static IE Current
        {
            get
            {
                if (!ScenarioContext.Current.ContainsKey("browser"))
                {
                    //Thread.CurrentThread.SetApartmentState(ApartmentState.STA);
                    ScenarioContext.Current["browser"] = new IE(true);
                }
                return ScenarioContext.Current["browser"] as IE;
            }
        }

    }
}
